package willevaluate.model;

import android.content.Context;
import android.os.Handler;

import java.io.Serializable;
import java.util.HashMap;

import common.Constant;
import https.InterNetController;

/**
 * Created by Administrator on 2017/6/8.
 */

public class QuestionnaireModel implements Serializable{
    private String is_pro;//是否出省
    private String is_advance;//提前
    private String is_extraexam;//自主
    private String is_plan;//毕业规划
    private String body;//健康状态
    private String wantedcity;//想去的省份
    private String adv_subject;//优势学科
    private String st_intention;//学生意向
    private String pra_intention;//家长意向
    private String st_special;//特长
    private String st_hobby;//爱好
    private String prajob;//父母职业
    private String fa_bg;//背景
    private String remark;//备注
    private String orderid;//订单号

    public QuestionnaireModel(String is_pro, String is_advance, String is_extraexam, String is_plan, String body, String wantedcity, String adv_subject, String st_intention, String pra_intention, String st_special, String st_hobby, String prajob, String fa_bg, String remark,String order_id) {
        this.is_pro = is_pro;
        this.is_advance = is_advance;
        this.is_extraexam = is_extraexam;
        this.is_plan = is_plan;
        this.body = body;
        this.wantedcity = wantedcity;
        this.adv_subject = adv_subject;
        this.st_intention = st_intention;
        this.pra_intention = pra_intention;
        this.st_special = st_special;
        this.st_hobby = st_hobby;
        this.prajob = prajob;
        this.fa_bg = fa_bg;
        this.remark = remark;
        this.orderid = order_id;
    }

    public void subimt(Context context, Handler handler) {
        HashMap<String, String> hashMap = new HashMap<>();
        hashMap.put("is_pro",is_pro);
        hashMap.put("is_advance",is_advance);
        hashMap.put("is_extraexam",is_extraexam);
        hashMap.put("is_plan",is_plan);
        hashMap.put("body",body);
        hashMap.put("wantedcity",wantedcity);
        hashMap.put("adv_subject",adv_subject);
        hashMap.put("st_intention",st_intention);
        hashMap.put("pra_intention",pra_intention);
        hashMap.put("st_special",st_special);
        hashMap.put("st_hobby",st_hobby);
        hashMap.put("prajob",prajob);
        hashMap.put("fa_bg",fa_bg);
        hashMap.put("remark",remark);
        hashMap.put("orderid",orderid);
        new InterNetController(context, Constant.QUESTION,handler,hashMap,0);
    }
}
